#include "CGamePlayStatics.h"
#include "CDamageEvent.h"

CGamePlayStatics::CGamePlayStatics()
{

}

CGamePlayStatics::~CGamePlayStatics()
{

}

float CGamePlayStatics::ApplyDamage(NpcItem* DamagedActor, float BaseDamage, NpcItem* DamageCauser, CDamageType &DamageTypeClass)
{
	if (DamagedActor && (0.0f != BaseDamage))
	{
		CDamageEvent DamageEvent(DamageTypeClass);
		return DamagedActor->TakeDamage(BaseDamage, DamageEvent, DamageCauser);
	}
	return 0.f;
}